.home-page {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #ffffff;
  background-color: #000000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

// 头部
.header {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #333333;
  background-color: rgba(0, 0, 0, 0.8);

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    .logo {
      width: 80px;
      height: 80px;
      .logo-img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 1px solid #333333;
        background-image: url('./images/logo.png');
        background-color: #ffffff;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: relative;
        overflow: hidden;
        
        // 添加外部虚化效果
        &::before {
          content: '';
          position: absolute;
          top: -25px;
          left: -25px;
          right: -25px;
          bottom: -25px;
          background: inherit;
          background-size: cover;
          background-position: center;
          filter: blur(20px);
          opacity: 0.7;
          z-index: -1;
          transform: scale(1.3);
        }
      }
    }
    .nav-menu {
      display: flex;
      list-style: none;
      margin: 0;
      padding: 0;
      gap: 2rem;

      li a {
        text-decoration: none;
        color: #ffffff;
        font-weight: 500;
        transition: color 0.3s ease;

        &:hover {
          color: #00d4ff;
        }
      }
    }
  }
}

// 英雄部分
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;

  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    
    // 右侧区域布局调整
    .hero-image {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      
      // 名言框容器
       .quote-section {
         margin-top: 2rem;
         width: 100%;
         
         &:first-child {
           margin-top: 3rem;
         }
         
         &:not(:first-child) {
           margin-top: 1.5rem;
         }
         
         .quote-container {
           background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 184, 230, 0.05) 100%);
           border: 1px solid rgba(0, 212, 255, 0.2);
           border-radius: 16px;
           padding: 2rem;
           position: relative;
           overflow: hidden;
           
           // 添加装饰性边框
           &::before {
             content: '';
             position: absolute;
             top: 0;
             left: 0;
             right: 0;
             height: 3px;
             background: linear-gradient(90deg, #00d4ff, #00b8e6, #00d4ff);
           }
           
           // 添加背景装饰
           &::after {
             content: '"';
             position: absolute;
             top: -10px;
             right: 20px;
             font-size: 8rem;
             color: rgba(0, 212, 255, 0.1);
             font-family: serif;
             line-height: 1;
           }
           
           .quote-content {
             position: relative;
             z-index: 1;
             
             .quote-text {
               font-size: 1.3rem;
               font-weight: 500;
               color: #ffffff;
               line-height: 1.6;
               margin-bottom: 1rem;
               font-style: italic;
               text-align: center;
             }
             
             .quote-author {
               font-size: 1rem;
               color: #00d4ff;
               text-align: right;
               font-weight: 600;
               margin: 0;
             }
           }
           
           // 悬停效果
           &:hover {
             transform: translateY(-2px);
             box-shadow: 
               0 8px 25px rgba(0, 212, 255, 0.15),
               0 4px 10px rgba(0, 0, 0, 0.1);
             transition: all 0.3s ease;
             
             &::after {
               color: rgba(0, 212, 255, 0.2);
               transform: scale(1.1);
               transition: all 0.3s ease;
             }
           }
         }
       }
    }

    .hero-text {
      h1 {
        font-size: 3.5rem;
        font-weight: 800;
        margin-bottom: 1rem;
        line-height: 1.2;
        color: #ffffff;

        .highlight {
          color: #00d4ff;
        }
      }

      h2 {
        font-size: 1.5rem;
        color: #cccccc;
        margin-bottom: 1.5rem;
        font-weight: 600;
      }

      p {
        font-size: 1.1rem;
        color: #cccccc;
        margin-bottom: 2rem;
      }

      .hero-buttons {
        display: flex;
        gap: 1rem;

        .btn {
          padding: 12px 24px;
          border: none;
          border-radius: 8px;
          font-weight: 600;
          cursor: pointer;
          transition: all 0.3s ease;

          &.btn-primary {
            background: #00d4ff;
            color: #000000;

            &:hover {
              background: #00b8e6;
              transform: translateY(-2px);
            }
          }

          &.btn-secondary {
            background: transparent;
            color: #00d4ff;
            border: 2px solid #00d4ff;

            &:hover {
              background: #00d4ff;
              color: #000000;
            }
          }
        }
      }
    }

     .hero-image {
       .profile-placeholder {
         width: 300px;
         height: 300px;
         background-image: url('./images/hero.jpg');
         background-size: cover;
         background-position: center;
         background-repeat: no-repeat;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         color: #cccccc;
         font-size: 1.2rem;
         font-weight: 500;
       }
     }
    
    
  }
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #ffffff;
}
// 关于我
.about {
  padding: 80px 0;
  background: #111111;

  .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;

    p {
      font-size: 1.1rem;
      color: #cccccc;
      margin-bottom: 1rem;
    }

    .about-stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;

      .stat {
        text-align: center;

        h3 {
          font-size: 2.5rem;
          font-weight: 800;
          color: #00d4ff;
          margin-bottom: 0.5rem;
        }

        p {
          color: #cccccc;
          font-weight: 500;
          margin: 0;
        }
      }
    }
  }
}

.skills {
  padding: 80px 0;
  background: #000000;

  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;

    .skill-category {
      background: #111111;
      padding: 2rem 3rem 2rem 2rem;
      border-radius: 12px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      border: 1px solid #333333;
      position: relative;
      overflow: visible;
      
      // 添加背景装饰
      &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #00d4ff, #00b8e6, #00d4ff);
      }

      h3 {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: #ffffff;
      }

             .skill-items {
         display: flex;
         flex-direction: column;
         gap: 0.8rem;
         position: relative;
         padding: 1rem 0 1rem 1rem;

        .skill-item {
          background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
          color: #00d4ff;
          padding: 1rem 1.5rem;
          border-radius: 8px;
          font-size: 1rem;
          font-weight: 600;
          border: 1px solid #333333;
          box-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.2);
          position: relative;
          transition: all 0.3s ease;
          transform-origin: left center;
          
                     // 创建堆叠效果
           
           &:nth-child(1) {
             transform: translateX(0px) rotate(-1deg);
             z-index: 6;
           }
           
           &:nth-child(2) {
             transform: translateX(6px) rotate(-0.5deg);
             z-index: 5;
           }
           
           &:nth-child(3) {
             transform: translateX(12px) rotate(0deg);
             z-index: 4;
           }
           
           &:nth-child(4) {
             transform: translateX(18px) rotate(0.5deg);
             z-index: 3;
           }
           
           &:nth-child(5) {
             transform: translateX(24px) rotate(1deg);
             z-index: 2;
           }

           &:nth-child(6) {
             transform: translateX(30px) rotate(1.5deg);
             z-index: 1;
           }
          // 悬停效果
          &:hover {
            transform: translateX(0px) rotate(0deg) scale(1.05) !important;
            z-index: 10 !important;
            background: linear-gradient(135deg, #00d4ff 0%, #00b8e6 100%);
            color: #000000;
            box-shadow: 
              0 8px 16px rgba(0, 212, 255, 0.3),
              0 16px 32px rgba(0, 212, 255, 0.2);
            border-color: #00d4ff;
          }
          
          // 添加技术栈标识
          &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: linear-gradient(to bottom, #00d4ff, #00b8e6);
            border-radius: 2px 0 0 2px;
          }
        }
      }
    }
  }
}

.projects {
  padding: 80px 0;
  background: #111111;

  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;

    .project-card {
      background: #000000;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease;
      border: 1px solid #333333;

      &:hover {
        transform: translateY(-5px);
        border-color: #00d4ff;
      }

      .project-image {
        height: 200px;
        background: #333333;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #cccccc;
        font-weight: 500;
      }

      .project-content {
        padding: 1.5rem;

        h3 {
          font-size: 1.3rem;
          font-weight: 700;
          margin-bottom: 0.5rem;
          color: #ffffff;
        }

        p {
          color: #cccccc;
          margin-bottom: 1rem;
        }

        .project-tech {
          display: flex;
          flex-wrap: wrap;
          gap: 0.5rem;

          span {
            background: #333333;
            color: #00d4ff;
            padding: 0.25rem 0.75rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 500;
          }
        }
      }
    }
  }
}

.contact {
  padding: 80px 0;
  background: #000000;

  .contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;

    .contact-info {
      h3 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #ffffff;
      }

      p {
        color: #cccccc;
        margin-bottom: 2rem;
      }

      .contact-details {
        .contact-item {
          display: flex;
          align-items: center;
          margin-bottom: 1rem;
          color: #cccccc;
          font-size: 1.1rem;
        }
      }
    }

    .contact-form {
      form {
        display: flex;
        flex-direction: column;
        gap: 1rem;

        input, textarea {
          padding: 12px 16px;
          border: 1px solid #333333;
          border-radius: 8px;
          font-size: 1rem;
          transition: border-color 0.3s ease;
          background-color: #111111;
          color: #ffffff;

          &:focus {
            outline: none;
            border-color: #00d4ff;
          }

          &::placeholder {
            color: #666666;
          }
        }

        textarea {
          resize: vertical;
          min-height: 120px;
        }

        .btn-primary {
          background: #00d4ff;
          color: #000000;
          padding: 12px 24px;
          border: none;
          border-radius: 8px;
          font-weight: 600;
          cursor: pointer;
          transition: background 0.3s ease;

          &:hover {
            background: #00b8e6;
          }
        }
      }
    }
  }
}

.footer {
  background: #000000;
  color: white;
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid #333333;

  p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
  }
}

@media (max-width: 768px) {
  .hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero .hero-text h1 {
    font-size: 2.5rem;
  }

  .about .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .header .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .header .nav-menu {
    gap: 1rem;
  }
}



@media (max-width: 480px) {
  .hero .hero-text h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
